import request from '@/utils/request'
import qs from 'qs'

// 查询操作日志列表
export function list(data) {
  return request({
    url: '/monitor/operlog/list',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    params: data

  })
}

// 删除操作日志
export function delOperlog(operIds) {
  return request({
    url: '/monitor/operlog/' + operIds,
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'POST'
  })
}

// 清空操作日志
export function cleanOperlog() {
  return request({
    url: '/monitor/operlog/clean',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'POST'
  })
}

// 导出操作日志
export function exportOperlog(data) {
  return request({
    url: '/monitor/operlog/export',
    responseType: 'blob',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    params: data
  })
}